package com.example.stmall.manager.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * 实体类，对应数据库的category表
 * 1.创建类，与数据表名相同
 * 2.添加属性与数据表的字段匹配
 * 3.提供get，set
 * 4.无参构造
 *
 * lombok  以注解的方式添加，get,set,toString,construct
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
public class Category {
    private Integer id;
    private String name;
    private String dscp;
    private String pic;
    private Integer parentId;
    private Integer recom;
    private Integer status;

    //关联对象
    private Category parent;
}
